Method for blocking denial of service and address spoofing attacks on a private network

ABSTRACT

A method is provided for blocking attacks on a private network ( 12 ). The method is implemented by a routing device ( 10 ) interconnecting the private network ( 12 ) to a public network ( 14 ). The method includes analyzing an incoming data packet from the public network ( 14 ). The incoming data packet is then matched against known patterns where the known patterns are associated with known forms of attack on the private network ( 12 ). A source of the data packet is then identified as malicious or non-malicious based upon the matching. In one embodiment, one of the known forms of attack is a denial of service attack and an associated known pattern is unacknowledged data packets. In another embodiment, one of the known forms of attack is an address spoofing attack and an associated known pattern is a data packet having a source address matching an internal address of the private network ( 12 ).

TECHNICAL FIELD OF THE INVENTION

[0001] This invention relates in general to communication systems, and more particularly to a method for blocking denial of service and address spoofing attacks on a private network.

BACKGROUND OF THE INVENTION

[0002] Corporate and other private networks often provide external access outward and inward through Internet gateways, firewalls or other routing devices. It is important for these routing devices to defend the private network against attackers from the outside as well as to allow access to the private network by authorized users. However there are numerous forms of attack on conventional routing device that can incapacitate the devices and interfere with an associated private network. The problem of keeping unauthorized persons from accessing data is a large problem for corporate and other information service management. Routing devices, such as gateways, firewalls and network routers lack important safeguards to block or prevent attacks. In particular, the number of denial service attacks have risen dramatically in recent years. Further, IP spoofing incidents occur with increasing frequency.

[0003] A denial of service attack consists of repeatedly sending requests for connections to different hosts through and/or behind the routing device. Typically, the host will wait for acknowledgment from the requester. Because a host can only handle a finite number of requests (for example, 1 to n, where n depends on the resources available to the host), the attacker can crash or “flood” a host with requests to the point of disrupting network service (host/server/port) to users.

[0004] Another form of attack is address spoofing which can be used by unauthorized third parties to gain access to a private network. This attack involves the attacker identifying a valid internal network address within the private network. The attacker then requests access to the private network through the routing device by spoofing that internal network address. Conventional routing devices typically are not sophisticated enough to determine that such a request should be denied (i.e., because an external request can not originate from an internal address) and will allow access to the attacker. Address spoofing attacks can be carried out against various types of networks and network protocols such as IPX/SPX, MAC layer, Netbios, and IP.

[0005] It is therefore advantageous to provide facilities within a routing device that block denial of service, address spoofing and other attacks on an associated private network.

SUMMARY OF THE INVENTION

[0006] In accordance with the present invention, a method for blocking denial of service and address spoofing attacks on a private network is disclosed that provides significant advantages over conventional network routing devices.

[0007] According to one aspect of the present invention, the method is implemented by a routing device interconnecting the private network to a public network. The method includes analyzing an incoming data packet from the public network. The incoming data packet is then matched against known patterns where the known patterns are associated with known forms of attack on the private network. A source of the data packet is then identified as malicious or non-malicious based upon the matching. In one embodiment, one of the known forms of attack is a denial of service attack and an associated known pattern is unacknowledged data packets. In another embodiment, one of the known forms of attack is an address spoofing attack and an associated known pattern is a data packet having a source address matching an internal address of the private network.

[0008] A technical advantage of the present invention is the enabling of a routing device to the identify a denial of service attack and to block such an attack from tying up the routing device.

[0009] Another technical advantage of the present invention is enabling a routing device to identify an address spoofing attack and to block such an attack.

[0010] A further technical advantage of the present invention is an ability for the routing device to track information about the attacker to allow preventive measures to be taken.

[0011] Other technical advantages should be readily apparent to one skilled in the art from the following figures, description, and claims.

BRIEF DESCRIPTION OF THE DRAWINGS

[0012] A more complete understanding of the present invention and advantages thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings, in which like reference numbers indicate like features, and wherein:

[0013]FIG. 1 is a block diagram of an communication system including a routing device and an associated private network;

[0014]FIG. 2 is a flow chart of one embodiment of a method for blocking attacks on a private network according to the present invention;

[0015]FIG. 3 is a flow chart of one embodiment of a method for blocking an address spoofing attack according to the present invention; and

[0016]FIG. 4 is a flow chart of one embodiment of a method for blocking a denial of service attack according to the present invention.

DETAILED DESCRIPTION OF THE INVENTION

[0017]FIG. 1 is a block diagram of an communication system including a routing device 10 and an associated private network 12. Routing device 10 provides a connection between corporate private network 12 and an Internet cloud 14. Routing device 10 can include a gateway, firewall or other device interconnecting private network 12 and Internet cloud 14. In operation, routing device 10 allows internal users within private network 12 to gain access to Internet cloud 14. Routing device 10 also allows external users connected to Internet cloud 14 to gain access to private network 12. A significant and growing problem is that an attacker 16 may try to gain access to or disrupt private network 12 through Internet cloud 14.

[0018] Denial of service and address spoofing are two common forms of attack that might be used by attacker 16. In general, a denial service attack is one in which attacker 16 attempts to prevent others from using private network 12. A denial service attack works if routing device 10 spends all of its time processing requests and cannot respond quickly enough to satisfy additional requests. An Address spoofing attack is on in which attacker 16 fakes an internal address to get around or into standard address filtering schemes. According to the present invention, routing device 10 is enabled with a method for blocking these and other types of attacks by analyzing incoming data packets.

[0019] Thus, one possible occurrence is that attacker 16 will try to get into private network 12 by spoofing an address that exists inside private network 12. This is intended to allow attacker 16 to gain access and impersonate an internal user. When a packet from attacker 16 reaches routing device 12, an attack blocking component, according to the present invention, will notice that the address matches one that exists within private network 12. Because incoming packets should not be the same as outgoing packets, the attack blocking component can deny access to private network 12 and record the information about the attack for use by the system administrator. Attacker 16 can also try to deny access to all external users by conducting a denial of service attack. This involves attacker 16 flooding private network 12 or routing device 10 by sending an extremely large number of packets. For example, attacker 16 may send 30,000 or more packets. According to the present invention, the attack blocking component of routing device 10 can notice that the first packet is spoofed or that it cannot be acknowledged and ignore all other packets. Further, routing device 10 can use diagnostic detection tools (e.g., trace root, ping, NS lookup) to pinpoint attacker 16 and notify the system administrator. In general, according to the present invention, routing device 10 can be enabled to intelligently analyze incoming packets, match the packets against known patterns for attack strategies and respond accordingly to malicious packets.

[0020]FIG. 2 is a flow chart of one embodiment of a method for blocking attacks on a private network according to the present invention. As shown, an incoming packet is analyzed by the routing device in step 20. In step 22, the routing device analyzes the incoming packet against known patterns. Based upon this pattern matching, in step 24, the routing device can identify the data packet and its source as malicious or non-malicious. The known patterns used in step 22 can be built using knowledge about various types of attacks. This knowledge can be recorded in the form of patterns that are then stored in a database or other storage device accessible by the routing device. The routing device can then match the analyzed packets against the patterns to determine whether or not some type of attack is being made. If an attack is identified, the routing device can identify the source of that packet as malicious and treat the source accordingly.

[0021] In particular, the routing device can implement methods for blocking denial of service attacks and address spoofing attacks as shown, for example, in FIGS. 3 and 4. FIG. 3 is a flow chart of one embodiment of a method for blocking an address spoofing attack according to the present invention. This method is applicable to address spoofing attacks on various types of networks, but is described specifically with respect to an IP network.

[0022] As shown in step 30 of FIG. 3, the routing device receives a packet. In step 32, the routing device compares the IP address of the packet against known internal IP addresses of the associated private network. In step 34, the routing device determines if the source IP address matches an internal address. If not, in step 36, the routing device routes the packet as appropriate for the packet. However, if the source IP address matches an internal address, then the routing device identifies that there is an attempt to spoof an internal address. The addressed is known to be spoofed because an internal IP address of the private network cannot be accessing the private network from an external point. Consequently, in step 38, the routing device drops the packet and does not route it to the network. In step 40, the routing device analyzes the packet header for the history of the packet in order to obtain some information about the source of the packet. Then, in step 42, the routing device takes an appropriate defensive action against that packet. For example, the routing device can refuse to accept any more packets from the real source of the packet. In this case, the defensive action can include adding the offending IP address to a cache of IP addresses and then not allowing access to the router device for any IP address in the cached list. Further, the routing device can store information about the attack for later use and for analysis for administrators of the private network. For example, information concerning the packet origination, destination or content can be stored internally to the router device or sent to a syslog server for later analysis.

[0023]FIG. 4 is a flow chart of one embodiment of a method for blocking a denial of service attack according to the present invention. As shown, in step 50, the routing device receives a request for a connection. Then, in step 52, the routing device asks for an acknowledgment from the requestor. In step 54, the routing device checks whether or not an acknowledgment has been received. If one is not received within a specified period of time, the routing device moves to step 56 and denies the request. This denial ensures that the routing device does not churn on pending requests even though acknowledgments have not been received within reasonable amounts of time.

[0024] If an acknowledgment is received in step 54, the routing device moves to step 58 and compares the requested connection to existing connections. Then, in step 60, the routing device determines if there is a match between the requested connection and one of the existing connections. If so, the routing device moves to step 46 and denies the request. The request is denied because one source should not have more than one connection through the routing device to the private network. If, in step 60, there is no match, then the routing device can allow the connection in step 62. The method of FIG. 4 prevents the routing device from being tied up by multiple requests from one source and thereby blocks the denial of service attack.

[0025] In general, the method of the present invention can be integrated as a component of a gateway, firewall or other routing device. In one implementation, the present invention can work off of a variable size cache file that holds network addresses. For blocking spoofing, each incoming address can be held in the cache file and checked to see if the incoming address matches an network address that is on the private network. If the incoming address matches, then the request can be denied. Also, a message can be sent to a system log which, rather than being written to a file, can be written to a console to prevent the log from getting overloaded and crashing the routing device. Further, an optional E-mail message or page can be sent to a specified address or number in the case of an attack. If an attack happens more than once on the same address in the span of a certain period of time (for example, five minutes), then the number of messages can be limited to prevent overloading of the E-mail or paging service. An optional shutdown mechanism can also be in place that will enable the routing device to automatically shut down certain services if attacks continued.

[0026] Denial of service attacks are generally easier to trace. However, when such an attack is also spoofed, the problem becomes very difficult to stop. According to the present invention, an incoming address can be checked against the cache file and a quick search can be performed to see if the address is already in a list of pending addresses. If so, the request packet can be discarded. An address is removed from the list if a successful acknowledge packet is sent back or a variable time limit is reached. The number of matching addresses that are allowed in the list can be a variable set by the system administrator.

[0027] Although the present invention has been described in detail, it should be understood that various changes, substitutions and alterations can be made thereto without departing from the sphere and scope of the invention as defined by the appended claims. 

What is claimed is:
 1. A method for blocking an attack on a private network implemented by a routing device interconnecting the private network to a public network, comprising: receiving a request for connection from an initiator, over the public network; requesting an acknowledgment from the initiator of the request; determining whether the acknowledgment has been received within a predetermined amount of time; and denying the request if the acknowledgment is not received within the predetermined amount of time.
 2. The method of claim 1, wherein the public network is the Internet.
 3. The method of claim 2, wherein the routing device is a firewall providing access to the Internet.
 4. The method of claim 1, further comprising processing the request if the acknowledgement is received.
 5. The method of claim 1, further comprising adding an IP address of the initiator to a cache of IP addresses if the acknowledgement is not received.
 6. The method of claim 5, further comprising denying access through the routing device to any IP address on the cache of IP addresses.
 7. The method of claim 1, further comprising storing information about the initiator on a system log for analysis by the system administrator.
 8. The method of claim 1, further comprising storing information about the request for connection on a system log for analysis by the system administrator.
 9. The method of claim 1, further comprising determining if a prior request for an acknowledgement has been sent to an IP address associated with the initiator and been unacknowledged within a predetermined amount of time, if the acknowledgement is not received.
 10. The method of claim 1, further comprising using diagnostic tools to determine additional information about a source of the request for connection.
 11. The method of claim 10, wherein using diagnostic tools to determine additional information about a source of the request for connection comprises using trace root diagnostic tools to determine information about the source of the request for connection.
 12. The method of claim 10, wherein using diagnostic tools to determine additional information about a source of the request for connection comprises using ping diagnostic tools to determine information about the source of the request for connection.
 13. The method of claim 10, wherein using diagnostic tools to determine additional information about a source of the request for connection comprises using NS lookup diagnostic tools to determine information about the source of the request for connection.
 14. The method of claim 10, further comprising forwarding the additional information to a system administrator via electronic mail.
 15. A method for blocking an attack on a private network implemented by a routing device interconnecting the private network to a public network, comprising: receiving an incoming data packet from the public network; comparing a source address of the data packet against known internal addresses of the private network; determining if the source address matches a known internal address; and if there is a match: dropping the data packet; analyzing a header of the data packet; determining information regarding a history of the packet; determining a real source of the data packet using the information regarding the history of the packet; and refusing to process any additional data packets received from the real source of the data packet.
 16. The method of claim 15, further comprising storing data about the data packet on a system log, for use and analysis by a system administrator.
 17. The method of claim 15, wherein the public network is the Internet.
 18. The method of claim 17, wherein the routing device is a firewall providing access to the Internet.
 19. The method of claim 15, further comprising forwarding the data packet to the private network if there is not a match.
 20. The method of claim 15, further comprising adding an IP address of the data packet to a cache of IP addresses if there is a match.
 21. The method of claim 20, further comprising denying access through the routing device to any IP address on the cache of IP addresses.
 22. The method of claim 15, further comprising using diagnostic tools to determine additional information about a source of the data packet.
 23. The method of claim 22, wherein using diagnostic tools to determine additional information about a source of the data packet comprises using trace root diagnostic tools to determine additional information about the source of the data packet.
 24. The method of claim 22, wherein using diagnostic tools to determine additional information about a source of the data packet comprises using ping diagnostic tools to determine additional information about the source of the data packet.
 25. The method of claim 22, wherein using diagnostic tools to determine additional information about a source of the data packet comprises using NS lookup diagnostic tools to determine additional information about the source of the data packet.
 26. The method of claim 22, further comprising forwarding the additional information to a system administrator via electronic mail.
 27. A method for blocking an attack on a private network implemented by a routing device interconnecting the private network to a public network, comprising: receiving a request for connection from an initiator, over the public network; requesting an acknowledgment from the initiator of the request; determining whether the acknowledgment has been received within a predetermined amount of time; denying the request if the acknowledgment is not received within the predetermined amount of time; comparing a source address of the request for connection with known internal addresses of the private network; determining if the source address matches a known internal address; and refusing to process the request for connection if there is a match.
 28. A system for blocking an attack on a private network, comprising: a routing device being operable to interconnect a private network to a public network, the routing device being further operable to: receive a request for connection from an initiator, over the public network; request an acknowledgment from the initiator of the request; determine whether the acknowledgment has been received within a predetermined amount of time; and deny the request if the acknowledgment is not received within the predetermined amount of time.
 29. A system for blocking an attack on a private network, comprising: a routing device being operable to interconnect the private network and a public network, the routing device being further operable to: receive an incoming data packet from the public network; compare a source address of the data packet against known internal addresses of the private network; determine if the source address matches a known internal address; and if there is a match: drop the data packet; analyze a header of the data packet; determine information regarding a history of the packet; determine a real source of the data packet using the information regarding the history of the packet; and refuse to process any additional data packets received from the real source of the data packet.
 30. A system for blocking an attack on a private network, comprising: means for interconnecting a private network to a public network; means for receiving a request for connection from an initiator, over the public network; means for requesting an acknowledgment from the initiator of the request; means for determining whether the acknowledgment has been received within a predetermined amount of time; and means for denying the request if the acknowledgment is not received within the predetermined amount of time.
 31. A system for blocking an attack on a private network, comprising: means for interconnecting the private network and a public network; means for receiving an incoming data packet from the public network; means for comparing a source address of the data packet against known internal addresses of the private network; means for determining if the source address matches a known internal address; and if there is a match, means for: dropping the data packet; analyzing a header of the data packet; determining information regarding a history of the packet; determining a real source of the data packet using the information regarding the history of the packet; and refusing to process any additional data packets received from the real source of the data packet.
 32. Software embodied in a computer-readable medium, the computer-readable medium comprising code operable to: interconnect a private network to a public network; receive a request for connection from an initiator, over the public network; request an acknowledgment from the initiator of the request; determine whether the acknowledgment has been received within a predetermined amount of time; and deny the request if the acknowledgment is not received within the predetermined amount of time.
 33. Software embodied in a computer-readable medium, the computer-readable medium comprising code operable to: receive an incoming data packet from the public network; compare a source address of the data packet against known internal addresses of the private network; determine if the source address matches a known internal address; and if there is a match: drop the data packet; analyze a header of the data packet; determine information regarding a history of the packet; determine a real source of the data packet using the information regarding the history of the packet; and refuse to process any additional data packets received from the real source of the data packet. 